type IFormType = 'input' | 'password' | 'select' | 'datepicker';

export interface IFormItem {
  filed: string;
  type: IFormType;
  label: string;
  rules?: [];
  placeholder?: string;
  // 针对select
  options?: any[];
  otherOptions?: any;
  isHidden?: boolean;
}

export interface IForm {
  formItems: IFormItem[];
  labelWidth?: string;
  itemStyle?: any;
  colLayout?: any;
}

export interface ITableProps {
  prop?: string;
  label: string;
  slotName?: string;
  minWidth?: string;
}
export interface childrenProps {
  rowKey: string;
  treeProp: any;
}

export interface ITable {
  headTitle: string;
  propInfo: ITableProps[];
  showIndexColumn?: boolean;
  showSelection?: boolean;
  childrenProps?: childrenProps;
  showFooter?: boolean;
}
